
#ifndef _EPOLL_REACTOR_H
#define _EPOLL_REACTOR_H

namespace NetIO
{

class Epoll_Reactor: public Reactor_Impl
{
public:
	Epoll_Reactor( void );

	virtual ~Epoll_Reactor( void );

	virtual void cancel_handle( Socket handle );

	virtual int run_once( );

private:
	virtual int register_handler_i( Socket &handle );

	virtual int start_op( Socket &handle, Operation *op );

private:
	int epoll_fd_;
};
};
#endif

